package user;

import book.Book;
import book.BookList;
import operations.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: AliceMana
 * Date: 2022-08-11
 * Time: 15:21
 */
public abstract class User {
    private String userName;
    protected IOperation[] iOperations;

    public void doOperation(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
    public abstract int menu();
    public User(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
